/**
 * Copyright:  Copyright (c) 2013
 *
 * @FileName		: SalesAccountDAOImpl.java
 * @PageName		: 매출현황 - 유통 거래처별
 * @Date			: 오후 4:59:46
 * @LastModifier	: 최경민
 * @LastModifyDate	: 
 * @LastModifier	: 
 * Change history	:
 */
package com.pulp.salse.dao.impl;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.pulp.salse.dao.SalesAccountDAO;
import com.pulp.salse.model.SalesAccountInfo;

/**
 * @author 최경민
 *
 */
public class SalesAccountDAOImpl extends SqlMapClientDaoSupport implements SalesAccountDAO {

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.SalesAccountDAO#getSalesAccountLineChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<SalesAccountInfo> getSalesAccountLineChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.SalesAccountLineChartList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.SalesAccountDAO#getSalesAccountPieChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<SalesAccountInfo> getSalesAccountPieChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.SalesAccountPieChartList", mapArgs);
	}

	/* (non-Javadoc)
	 * @see com.pulp.management.dao.SalesAccountDAO#getSalesAccountTableChartList()
	 */
	@SuppressWarnings("unchecked")
	@Override
	public List<SalesAccountInfo> getSalesAccountTableChartList() throws SQLException {
		Map mapArgs = new HashMap();
		return getSqlMapClientTemplate().queryForList("manage.SalesAccountTableChartList", mapArgs);
	}

}
